home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.3 KB | 33 lines | [TEXT/GEOL] |
- Item 6493745 5-Oct-87 12:58
-
- From: D0542 Productive Tech, Dev, Mark Gilford
-
- To: MACAPP$ MacApp Interest List
-
- Sub: Question on Update Events
-
- Hello everyone...
-
- I am working on an application which has spatially ordered objects in a view,
- (like a spreadsheet), and have been working on the selection process. Currently
- the way it works is that when the the mouse button first is down, the
- DoMouseCommand method of the view creates a Selector object of type TCommand.
- It is the job of the selector's TrackMouse method to initiate highlighting or
- unhighlighting of objects as the user changes the selection rectangle with the
- mouse. The actual object highlighting (invert Rect) is the only feedback to
- the user, again the same as with a spreadsheet,and the TrackFeedBack method has
- been overridden to do nothing.
-
- This technique works ok,with one exception: I always get an update event when
- the mouse goes up, which invalidates and redraws the view in the frame. This
- redraw is unnecessary, because the objects are already being displayed exactly
- the way they should be, simply through the selection process itself.
-
- Any ideas on getting around this?
-
- Thanks much.....Mark
-
-
-
-
-